package edu.whut.mall.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-06-14 15.08
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Resources implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    private String name;

    private Integer type;

    private String url;

    private String permission;

    private Long parentId;

    private Integer sort;

    /**
     * 是否外部链接
     */

    private Integer external;

    private Integer available;

    /**
     * 菜单图标
     */

    private String icon;

    /**
     * 添加时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}